package cn.loioi.web.components.spring.result;

import java.io.Serializable;

public class ResultError implements Serializable {
	private static final long serialVersionUID = -3303133992358516349L;

	protected int code = 0;
	protected String msg;

	public ResultError() {
		this.code = 0;
		this.msg = "未知错误";
	}

	public ResultError(int code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
